const express = require('express')
const app = express()
const router=require("./router/index.js")
app.use(express.static('view'))
app.use(router)
const port = process.env.npm_package_config_port||process.argv[2]||3000
app.listen(port, () => {
  console.log(`http://127.0.0.1:${port}/`)
})
require("./ws")
// const {updateOrder,	getOrder,	newData} = require("./sequelize.js")
// getOrder(3).then(res=>{
//   console.log("res:",res);
// })